]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
network: Don't pass this._connections to the VPN section
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 29 Apr 2013 17:12:14 +0000 (13:12 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 15 May 2013 15:13:11 +0000 (11:13 -0400)
It's always empty by this point.

https://bugzilla.gnome.org/show_bug.cgi?id=700322

js/ui/status/network.js

index aa0f30d914ee152b150422db64a3e2ca27f602b3..6d57c3f9fa287156577a7976ff377432a230a959 100644 (file)
@@ -1374,8 +1374,8 @@ const NMVPNSection = new Lang.Class({
     Extends: NMConnectionBased,
     category: NMConnectionCategory.VPN,
 
-    _init: function(client, connections) {
-        this.parent(connections);
+    _init: function(client) {
+        this.parent([]);
         this._client = client;
 
         this.section = new PopupMenu.PopupMenuSection();
@@ -1631,7 +1631,7 @@ const NMApplet = new Lang.Class({
         this.menu.addMenuItem(this._devices.wwan.section);
         this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
 
-        this._vpnSection = new NMVPNSection(this._client, this._connections);
+        this._vpnSection = new NMVPNSection(this._client);
         this._vpnSection.connect('activation-failed', Lang.bind(this, this._onActivationFailed));
         this.menu.addMenuItem(this._vpnSection.section);
         this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());